using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Yozeev.SystemConfig;

namespace Yozeev.BusinessLogic
{
    /// <summary>
    /// 充值记录
    /// </summary>
    public class RechargeRecord : ByBranchEntity<Guid>
    {
        /// <summary>
        /// 旅行社标识
        /// </summary>
        [Required]
        [StringLength(128)]
        public Guid TravelAgencyId { get; set; }
        [ForeignKey("TravelAgencyId")]
        public virtual TravelAgency TravelAgency { get; set; }
        /// <summary>
        /// 充值金额
        /// </summary>
        public decimal Amount { get; set; }
        /// <summary>
        /// 充值状态
        /// </summary>
        [Required]
        public RechargeStatusEnum RechargeStatus { get; set; }
        /// <summary>
        /// 支付方式
        /// </summary>
        [Required]
        [StringLength(128)]
        public Guid PayMethodId { get; set; }
        [ForeignKey("PayMethodId")]
        public virtual PayMethod PayMethod { get; set; }
        /// <summary>
        /// 旅行社支付方式
        /// </summary>
        public PayMethodEnum PayMethodType { get; set; }
        /// <summary>
        /// 旅行社记录类型
        /// </summary>
        public ComsuneStatusEnum ComsuneStatus { get; set; }
    }
}
